package com.sheyu.mall.order.feign;

import com.sheyu.mall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


/**
 * @author sheyu
 * @Desciption:
 * @date 2020/9/10 12:18 上午
 */
@FeignClient("member-service")
public interface MemberfeignService {

    /**
     * 查询当前memberID的收货地址
     * @param memberId
     * @return
     */
    @GetMapping(value = "member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

}
